﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;
using DHQGHN.DAL.Models.TDT;

namespace DHQGHN.Services.TDT
{
    [ServiceContract]
    public interface IStatisticsService
    {
        //[OperationContract]
        //[WebGet(ResponseFormat = WebMessageFormat.Json,
        //    BodyStyle = WebMessageBodyStyle.Bare,
        //    UriTemplate = "GetInfo")]
        //InvestigationStatistics GetInfo(StatisticsInfoMode obj);

        [OperationContract]
        [WebInvoke(Method = "POST",
            ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json,
            UriTemplate = "GetResult")]
        List<InvestigationStatistics> GetInfo(StatisticsInfoMode obj);

       
        [WebGet(ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare,
            UriTemplate = "GetSurveyMethodCount")]
        [OperationContract(Action = "GetSurveyMothodCount",Name = "GetSurveyMothodCount")]
        SurveyMethodInfoModel GetInfo();

    }
}
